<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<f:view>
    <link href="/general/css/admin_1.css" rel="stylesheet" type="text/css"/>
    <t:div>
        <h:form>
            <br>
            <h:panelGrid columns="1" width="100%" styleClass="tablaprincipal">
                <h:outputLabel value="Numeracion de Certificados" />
            </h:panelGrid>
            <a4j:outputPanel ajaxRendered="true">
                <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                            warnClass="warnClass" fatalClass="fatalClass" showDetail="true" errorStyle="color:red;"
                            warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
            </a4j:outputPanel>
            <h:inputHidden value="#{tipoDocumentoController.inicioCert}" />
            <h:panelGrid columns="2" styleClass="tablanormal">
                <h:outputLabel value="Certificado: "/>
                <h:selectOneMenu value="#{tipoDocumentoController.tipoSeleccionado}">
                    <f:selectItems value="#{tipoDocumentoController.certificadosItems}"/>
                </h:selectOneMenu>
                <h:outputLabel value="Numeracion: "/>
                <h:inputText value="#{tipoDocumentoController.numeracion}" />
            </h:panelGrid>
            <br/>
            <h:commandButton value="Grabar" action="#{tipoDocumentoController.grabarNumeracion}" />            
        </h:form>
    </t:div>
</f:view>
